import IndexModel from "../models/indexModel.js"
const indexController = {
  indexAction(){
    return async(ctx, next) => {
      const indexModelIns = new IndexModel();
      const result = await indexModelIns.getData();
      ctx.body = await ctx.render('index',{data:result});
    }
  }
};
export default indexController;
